package fr.enseirb.mycub.component.map.bus;

import java.util.ArrayList;
import java.util.Hashtable;

import fr.enseirb.mycub.structures.SpecificLine;

import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;
import android.graphics.drawable.BitmapDrawable;
import android.util.Log;

public class ClassicDrawable extends BitmapDrawable {

	static Paint mPaint = BusStationsOverlay.mTextPaint;
	public static Hashtable<String, BitmapDrawable> table;

	ArrayList<SpecificLine> lines;


	public ClassicDrawable(Resources r, Bitmap b) {
		super(r, b);
		this.setAlpha(200);
	}

	@Override
	public void draw(Canvas canvas) {
		super.draw(canvas);
//		if(lines.size() > 0){
//			//		Log.i("TEST DRAW",lines.get(0).ligne.getName());
//			BitmapDrawable drawable = table.get(lines.get(0).ligne.getName());
//			if(drawable == null) return;
//			//dessiner l'icône de la ligne depuis le lineId
//			Rect src = new Rect(0,0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight());
//			canvas.drawBitmap(drawable.getBitmap(),src,new Rect(-25,-50,5,-20),mPaint);
//		}
	}
}